package cheesr.model;

import java.net.MalformedURLException;
import java.net.URL;

public class Recipe {
    private String name;
    private URL url;

    public Recipe() {

    }

    public Recipe(String name, String url) throws MalformedURLException {
        super();
        this.name = name;
        this.url = new URL(url);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public URL getUrl() {
        return url;
    }

    public void setUrl(URL url) {
        this.url = url;
    }
}
